package cn.edu.scau.cmi.liguanwu.singleton;



public class Chairman {
	private static Chairman chairman;
	private String name;
	private Chairman(String name) {
		this.name = name;
	}
	public static boolean getInstance(String name) {
		if(chairman == null&&!name.equals(null)) {
			chairman = new Chairman(name);
			return true;
		}
		return false;
	}
	
	public static Chairman getchairman() {
		return Chairman.chairman;
	}
}
	
